package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

/**
 * @author jiaqi.guo
 * @version 1.0
 * @created 2020/5/19 11:44
 */
public enum RoleConfigurationEnum {
    // roleCode配置
    CODE(new String[]{"ROLE_APPROVER_ADMIN"});
    private String[] roleCode;

    // 构造方法
    private RoleConfigurationEnum(String[] roleCode) {
        this.roleCode = roleCode;

    }

    // 获取用户角色Code
    public static String[] getCodeList() {
        for (RoleConfigurationEnum num : RoleConfigurationEnum.values()) {
            return num.roleCode;
        }
        return null;
    }

}
